﻿using System;
using System.Collections.Generic;
using Sirenix.OdinInspector;
using UnityEngine;

namespace BearUtil
{
    /// <summary>
    /// 故事对话需要的一些设置参数
    /// </summary>
    [Serializable]
    public class DialogProperty
    {
        /// <summary>
        /// 触发事件类型
        /// </summary>
        [HideInInspector, Obsolete("旧版本数据")]
        public StoryTriggerEvent trigger_event;
        
        /// <summary>
        /// 触发参数
        /// </summary>
        [HideInInspector, Obsolete("旧版本数据")]
        public string trigger_param;
        
        [LabelText("触发事件")]
        public List<StoryTriggerEvent> triggerEvents;
        [LabelText("触发参数")]
        public List<int> triggerParams;

        [LabelText("自动跳转地图 ID")] 
        public int auto_trans_map_id = 0;
        
        /// <summary>
        /// 触发事件参数
        /// </summary>
        [LabelText("地图id")]
        public int map_id;
        
        /// <summary>
        /// 相机位置
        /// </summary>
        [LabelText("相机位置")]
        public Vector2 camera_pos;
        
        /// <summary>
        /// 主角位置
        /// </summary>
        [LabelText("主角位置")]
        public Vector2 pc_pos;

        /// <summary>
        /// 主角朝向
        /// </summary>
        [LabelText("主角朝向")]
        public ObjectDirection pc_direction = ObjectDirection.Down;
    }
}
